package cn.com.nes.mybatis.agent.ope.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 协议标准数据项配置
 * </p>
 *
 * @author nes
 * @since 2023-03-22
 */
@TableName("agent_standard_data_item")
public class AgentStandardDataItem extends Model<AgentStandardDataItem> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 厂商id
     */
    @TableField("manufacture_id")
    private String manufactureId;
    /**
     * 协议id
     */
    @TableField("protocol_id")
    private String protocolId;
    /**
     * 标准数据项
     */
    @TableField("standard_data_item")
    private String standardDataItem;
    /**
     * 协议数据项
     */
    @TableField("protocol_data_item_id")
    private String protocolDataItemId;
    /**
     * 上级标准数据项
     */
    @TableField("parent_standard_data_item")
    private String parentStandardDataItem;
    /**
     * 上级标准数据项对应值
     */
    @TableField("parent_value")
    private Integer parentValue;
    /**
     * 数据库字段
     */
    @TableField("template_id")
    private String templateId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getManufactureId() {
        return manufactureId;
    }

    public void setManufactureId(String manufactureId) {
        this.manufactureId = manufactureId;
    }

    public String getProtocolId() {
        return protocolId;
    }

    public void setProtocolId(String protocolId) {
        this.protocolId = protocolId;
    }

    public String getStandardDataItem() {
        return standardDataItem;
    }

    public void setStandardDataItem(String standardDataItem) {
        this.standardDataItem = standardDataItem;
    }

    public String getProtocolDataItemId() {
        return protocolDataItemId;
    }

    public void setProtocolDataItemId(String protocolDataItemId) {
        this.protocolDataItemId = protocolDataItemId;
    }

    public String getParentStandardDataItem() {
        return parentStandardDataItem;
    }

    public void setParentStandardDataItem(String parentStandardDataItem) {
        this.parentStandardDataItem = parentStandardDataItem;
    }

    public Integer getParentValue() {
        return parentValue;
    }

    public void setParentValue(Integer parentValue) {
        this.parentValue = parentValue;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public static final String ID = "id";

    public static final String MANUFACTURE_ID = "manufacture_id";

    public static final String PROTOCOL_ID = "protocol_id";

    public static final String STANDARD_DATA_ITEM = "standard_data_item";

    public static final String PROTOCOL_DATA_ITEM_ID = "protocol_data_item_id";

    public static final String PARENT_STANDARD_DATA_ITEM = "parent_standard_data_item";

    public static final String PARENT_VALUE = "parent_value";

    public static final String TEMPLATE_ID = "template_id";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AgentStandardDataItem{" +
        ", id=" + id +
        ", manufactureId=" + manufactureId +
        ", protocolId=" + protocolId +
        ", standardDataItem=" + standardDataItem +
        ", protocolDataItemId=" + protocolDataItemId +
        ", parentStandardDataItem=" + parentStandardDataItem +
        ", parentValue=" + parentValue +
        ", templateId=" + templateId +
        "}";
    }
}
